#include <iostream>
using namespace std;

int main(){
    int x,y;
    cin >> x >> y;
    cout << (x >= 10 || y >= 20) << endl;
}